//封装所有后端的api请求
import http from './request.js'
export default{
	//注册接口
	register(param){
		return http.post('/user/register',param)
	}, 
	//登录接口
	login(param){
		return http.post('/user/login',param)
	}, 
	//刷新token
	getUserInfo(id){
		return http.get(`/user/findByUserId/${id}`,null,true)
	}, 
	


	
}